package ch.fusun.baron.basic.initialization;

import ch.fusun.baron.core.initialization.GameInitializer;
import ch.fusun.baron.core.injection.Configure;
import ch.fusun.baron.core.injection.Inject;
import ch.fusun.baron.map.api.GameMapService;

/**
 * Initializes the size of the map
 */
public class MapInitializer implements GameInitializer {
	@Inject
	private transient GameMapService mapService;
	@Configure(value = "10")
	private int WIDTH;
	@Configure(value = "10")
	private int HEIGHT;

	/**
	 * Injection constructor
	 */
	public MapInitializer() {
		// Do nothing
	}

	@Override
	public void initialize() {
		mapService.configure(WIDTH, HEIGHT);
	}

}
